import Login from './views/Login.vue'
import NotFound from './views/404.vue'
import Home from './views/Home.vue'
import Main from './views/Main.vue'
import Table from './views/nav1/Table.vue'
import Form from './views/nav1/Form.vue'
import user from './views/nav1/user.vue'
import Page4 from './views/nav2/Page4.vue'
import Page5 from './views/nav2/Page5.vue'
import Page6 from './views/nav3/Page6.vue'
import echarts from './views/charts/echarts.vue'


import Department from '@/views/nav2/Department'
import Employee from '@/views/nav2/Employee'
import Shop from '@/views/nav2/Shop'
import ShopRegister from '@/views/nav3/ShopRegister'
import Systemdictionarytype from '@/views/nav3/Systemdictionarytype'

import PetManager from '@/views/petmanager/PetManager'
import QuillEditorDemo from '@/views/petmanager/QuillEditorDemo'

import SearchMaster from '@/views/pet/SearchMaster'
import PetJieDan from '@/views/pet/PetJieDan'
import PetLinYang from '@/views/pet/PetLinYang'
import FuWu from  '@/views/petmanager/FuWu'

let routes = [
    {
        path: '/login',
        component: Login,
        name: '',
        hidden: true
    },
    {
        path: '/register',
        component: ShopRegister,
        name: '',
        hidden: true
    },
    {
        path: '/404',
        component: NotFound,
        name: '',
        hidden: true
    },
    //{ path: '/main', component: Main },
    {
        path: '/',
        component: Home,
        name: '导航一',
        iconCls: 'el-icon-message',//图标样式class
        children: [
            { path: '/main', component: Main, name: '主页', hidden: true },
            { path: '/table', component: Table, name: 'Table' },
            { path: '/form', component: Form, name: 'Form' },
            { path: '/user', component: user, name: '列表' },
        ]
    },
    {
        path: '/',
        component: Home,
        name: '系统管理',
        iconCls: 'fa fa-id-card-o',
        children: [
            { path: '/dept', component: Department, name: '部门管理' },
            { path: '/emp', component: Employee, name: '员工管理' },
            { path: '/shop', component: Shop, name: '店铺管理' }
        ]
    },
    {
        path: '/',
        component: Home,
        name: '字典管理',
        iconCls: 'fa fa-id-card-o',
        children: [
             { path: '/type', component: Systemdictionarytype, name: '字典类型' },
             // { path: '/detail', component: Systemdictionarydetail, name: '数据详情' }
        ]
    },
    {
        path: '/',
        component: Home,
        name: '宠物寻主',
        iconCls: 'fa fa-id-card-o',
        children: [
            {path: '/seachmaster', component: SearchMaster, name: '寻主审核'},
            {path: '/petjiedan', component: PetJieDan, name: '寻主接单'},
            {path: '/petlinyang', component: PetLinYang, name: '宠物领养'}
        ]
    },

    {
        path: '/',
        component: Home,
        name: '宠物管理',
        iconCls: 'fa fa-id-card-o',
        children: [
            {path: '/petmanager', component: PetManager, name: '宠物上下架'},
            {path: '/quill', component: QuillEditorDemo, name: '富文本编辑器案例'},
            {path: '/fuwu', component: FuWu, name: '服务管理'}
        ]
    },

    {
        path: '/',
        component: Home,
        name: 'Charts',
        iconCls: 'fa fa-bar-chart',
        children: [
            { path: '/echarts', component: echarts, name: 'echarts' }
        ]
    },
    {
        path: '*',
        hidden: true,
        redirect: { path: '/404' }
    }
];

export default routes;